package com.kaili.db.service.impl;

import com.kaili.pojo.entity.HsEwbsDeliveryDetail;
import com.kaili.db.mapper.HsEwbsDeliveryDetailMapper;
import com.kaili.db.service.IHsEwbsDeliveryDetailService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kaili.common.exception.BaseExcept;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
@Service
public class HsEwbsDeliveryDetailServiceImpl extends ServiceImpl<HsEwbsDeliveryDetailMapper, HsEwbsDeliveryDetail> implements IHsEwbsDeliveryDetailService {

    @Override
    public boolean insertBatch(List<HsEwbsDeliveryDetail> list){
        baseMapper.insertBatch(list);
        return true;
    }

    @Override
    public void deleteByOperationId(String operationId) throws BaseExcept {
        baseMapper.deleteByOperationId(operationId);
    }

    @Override
    public List<HsEwbsDeliveryDetail> selectByOperationId(String operationId) throws BaseExcept {
        return baseMapper.selectByOperationId(operationId);
    }


}
